home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / lib / m / local.mk < prev    next >
Encoding:
Makefile  |  1990-02-16  |  1.0 KB  |  36 lines

  1. #
  2. # This file is included by Makefile.  Makefile is generated automatically
  3. # by mkmf, and this file provides additional local personalization.  The
  4. # variable SYSMAKEFILE is provdied by Makefile;  it's a system Makefile
  5. # that must be included to set up various compilation stuff.
  6. #
  7.  
  8. MDPUBHDRS    =
  9.  
  10. #include    <$(SYSMAKEFILE)>
  11.  
  12. CFLAGS        += -Dieee
  13.  
  14. # A lot of things are conditional on "national" because of the order of
  15. # bytes in a double.  ds3100s use the same bizarre ordering.
  16.  
  17. #if !empty(TM:Mds3100)
  18. CFLAGS += -Dnational
  19. #endif
  20.  
  21. #
  22. # Gcc seems to be screwing up on some files when optimization is enabled.
  23. # So, for sincos.c, give explicit compilation commands here to avoid use
  24. # of "-o" switch.  This problem occurred with version 1.25 of Gcc.  Retry
  25. # in a while to see if the problem has gone away (cos(.785400) will screw
  26. # up).
  27. #
  28.  
  29. $(TM).md/sincos.go:    sincos.c
  30.     $(RM) -f $(.TARGET)
  31.     $(CC) $(CFLAGS:N-O) -g -c sincos.c -o $(.TARGET)
  32.  
  33. $(TM).md/sincos.o:    sincos.c
  34.     $(RM) -f $(.TARGET)
  35.     $(CC) $(CFLAGS:N-O) -c sincos.c -o $(.TARGET)
  36.